package com.quwancode.springbootmysql.service;

import com.quwancode.springbootmysql.common.page.PageResult;
import com.quwancode.springbootmysql.dto.StudentCreateDto;
import com.quwancode.springbootmysql.dto.StudentUpdateDto;
import com.quwancode.springbootmysql.model.Student;
import com.baomidou.mybatisplus.extension.service.IService;
import com.quwancode.springbootmysql.query.StudentQuery;
import com.quwancode.springbootmysql.vo.StudentVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chuck
 * @since 2023-12-09
 */
public interface StudentService extends IService<Student> {

    PageResult<StudentVo> page(StudentQuery query);

    StudentVo get(Long id);

    void save(StudentCreateDto dto);

    void update(StudentUpdateDto dto);

    void delete(List<Long> idList);

}
